//============ com.pengesoft.domain.House =============
import {DataPacket, NorDataList} from 'pengesoft-ng-lib';

export class House extends DataPacket {
    Rooms: number;
    City: string;
    Description: string;
    Rent: number;
    Type: number;
    ContractUrl: string;
    Province: string;
    PayPeriod: number;
    Enable: number;
    Id: string;
    CollectId: string;
    UpdateTime: Date;
    CurrentRooms: number;
    Community: string;
    ParentId: string;
    Size: number;
    CreateTime: Date;
    ContractId: string;
    HousePicList: HousePicList;
    HousePicks: string;
    DetailAddress: string;
    IsExpired: number;
    Region: string;
    Status: number;
    constructor(opts: {
        Rooms?: number;
        City?: string;
        Description?: string;
        Rent?: number;
        Type?: number;
        ContractUrl?: string;
        Province?: string;
        PayPeriod?: number;
        Enable?: number;
        Id?: string;
        CollectId?: string;
        UpdateTime?: Date;
        CurrentRooms?: number;
        Community?: string;
        ParentId?: string;
        Size?: number;
        CreateTime?: Date;
        ContractId?: string;
        HousePicList?: HousePicList;
        HousePicks?: string;
        DetailAddress?: string;
        IsExpired?: number;
        Region?: string;
        Status?: number;
    } = {}) {
        super();
        this.Rooms = opts.Rooms || 0;
        this.City = opts.City || '';
        this.Description = opts.Description || '';
        this.Rent = opts.Rent || 0;
        this.Type = opts.Type || 0;
        this.ContractUrl = opts.ContractUrl || '';
        this.Province = opts.Province || '';
        this.PayPeriod = opts.PayPeriod || 0;
        this.Enable = opts.Enable || 0;
        this.Id = opts.Id || '';
        this.CollectId = opts.CollectId || '';
        this.UpdateTime = opts.UpdateTime || null!;
        this.CurrentRooms = opts.CurrentRooms || 0;
        this.Community = opts.Community || '';
        this.ParentId = opts.ParentId || '';
        this.Size = opts.Size || 0;
        this.CreateTime = opts.CreateTime || null!;
        this.ContractId = opts.ContractId || '';
        this.HousePicList = opts.HousePicList || null!;
        this.HousePicks = opts.HousePicks || '';
        this.DetailAddress = opts.DetailAddress || '';
        this.IsExpired = opts.IsExpired || 0;
        this.Region = opts.Region || '';
        this.Status = opts.Status || 0;
    }
}


//============ com.pengesoft.domain.HousePicList =============

export class HousePicList extends NorDataList<HousePic> {
    constructor() {
        super();
    }
}
//============ com.pengesoft.domain.HousePic =============

export class HousePic extends DataPacket {
    PicUrl: string;
    HouseId: string;
    CreateTime: Date;
    UpdateTime: Date;
    Id: string;
    constructor(opts: {
        PicUrl?: string;
        HouseId?: string;
        CreateTime?: Date;
        UpdateTime?: Date;
        Id?: string;
    } = {}) {
        super();
        this.PicUrl = opts.PicUrl || '';
        this.HouseId = opts.HouseId || '';
        this.CreateTime = opts.CreateTime || null!;
        this.UpdateTime = opts.UpdateTime || null!;
        this.Id = opts.Id || '';
    }
}

